// 封装localStorage
export const
    storage = (key: string) => ({
        get<T>(): T | null {
            const item = window.localStorage.getItem(key);
            return item || null;
        },
        set<T>(value: T) {
            
            window.localStorage.setItem(key, value);
        },
        remove() {
            window.localStorage.removeItem(key);
        },
    });

